package gam.t1.triggers;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;

import java.util.function.BiConsumer;
import java.util.logging.Logger;

public interface TestTrigger {
    boolean sync = false;
    Logger loger = Bukkit.getLogger();
    Component runTrigger(Component component, String argument);
    boolean isSync();
    default void setSync(boolean i){}
    default Runnable nextSync(Component component,String argument){return null;}
    default void runSyncTrigger(Plugin plugin, Runnable sync){Bukkit.getScheduler().runTaskAsynchronously(plugin,sync);}
}
